﻿using System.Data;

namespace lwzlz.Application.Information
{
    public class Utils
    {
        public static bool HasMoreRow(DataSet ds)
        {
            if (ds == null || ds.Tables.Count == 0 || ds.Tables[0].Rows.Count == 0)
            {
                return false;
            }
            else
            {
                return true;
            }
        }

        public static bool HasMoreRow(DataTable dt)
        {
            if (dt == null || dt.Rows.Count == 0)
                return false;
            else
                return true;
        }

        public static bool HasMoreRow(IDataReader dt)
        {
            if (dt == null)
                return false;
            else
                return true;
        }
    }
}